#!/usr/bin/env python

from google.appengine.ext import db

class Foo(db.Model):
    bar = db.IntegerProperty()
    
import webapp2

class Test(webapp2.RequestHandler):
    def get(self):
        
        f = Foo()
        f.bar = 2
        f.put()
        Foo(bar = 3).put
        
        print str(Foo.all().get().bar)

        return

        self.response.headers['Content-Type'] = 'application/vnd.google-earth.kml+xml'
        self.response.headers['Content-Type'] = 'text/xml'
        self.response.out.write(etree.tostring(placemark))


app = webapp2.WSGIApplication([
                               ('/test.kml', Test)
                               ], debug=True)
